CCFLAGS = -g -Winline
TEST = test

######################################

CPP = test.cpp
DEP = $(CPP:.cpp=.d)
OBJ = $(CPP:.cpp=.o)

all: $(TEST)

%.o: %.cpp
	g++ $(CCFLAGS) -c -o $@ $<

%.d: %.cpp
	g++ -MM -MF $@ $<

$(TEST): test.o
	g++ -o $@ $^

clean:
	rm -f $(TEST) $(OBJ) $(DEP)

.PHONY: all swig clean

-include $(DEP)
